﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="frmQuyTacDe.aspx.cs" Inherits="frmQuyTacDe" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
    </style>
</head>

<body>
    <form id="form1" runat="server">
    <div>
    
        <table class="style1">
            <tr>
                <td>
                    <asp:Label ID="Label1" runat="server" Text="Ma Quy Tac"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtMaQuyTac" runat="server" AutoPostBack="True" 
                        ontextchanged="txtMaQuyTac_TextChanged"></asp:TextBox>
                </td>
                <td>
                    <asp:Button ID="btnThem" runat="server" onclick="btnThem_Click" Text="Them" 
                        Width="117px" />
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="Label2" runat="server" Text="So luong cau hoi"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtSoluongCH" runat="server"></asp:TextBox>
                </td>
                <td>
                    <asp:Button ID="btnSua" runat="server" Text="Sua" Width="117px" 
                        onclick="btnSua_Click" />
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="Label3" runat="server" Text="Kho"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtKho" runat="server" AutoPostBack="True" 
                        ontextchanged="txtKho_TextChanged"></asp:TextBox>
                </td>
                <td>
                    <asp:Button ID="btnXoa" runat="server" onclick="btnXoa_Click" Text="Xoa" 
                        Width="117px" />
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="Label4" runat="server" Text="Trung binh"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtTrungbinh" runat="server" AutoPostBack="True" ontextchanged="txtTrungbinh_TextChanged" 
                        ></asp:TextBox>
                </td>
                <td>
                    <asp:Button ID="btnHuyThaotac" runat="server" onclick="btnHuyThaotac_Click" 
                        Text="Huy Thao Tac" Width="117px" />
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="Label5" runat="server" Text="De"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtDe" runat="server" AutoPostBack="True" 
                        ontextchanged="txtDe_TextChanged"></asp:TextBox>
                </td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td colspan="3">
                    <asp:GridView ID="grvQTDe" runat="server" AllowPaging="True" 
                        AllowSorting="True" CellPadding="4" DataSourceID="SqlDataSource1" 
                        ForeColor="#333333" GridLines="None" AutoGenerateColumns="False" 
                        DataKeyNames="MaQT" onselectedindexchanged="grvQTDe_SelectedIndexChanged">
                        <RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
                        <Columns>
                            <asp:CommandField ShowSelectButton="True" />
                            <asp:BoundField DataField="MaQT" HeaderText="MaQT" ReadOnly="True" 
                                SortExpression="MaQT" />
                            <asp:BoundField DataField="SoCH" HeaderText="SoCH" SortExpression="SoCH" />
                            <asp:BoundField DataField="Kho" HeaderText="Kho" SortExpression="Kho" />
                            <asp:BoundField DataField="TB" HeaderText="TB" SortExpression="TB" />
                            <asp:BoundField DataField="De" HeaderText="De" SortExpression="De" />
                        </Columns>
                        <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
                        <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
                        <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                        <AlternatingRowStyle BackColor="White" />
                    </asp:GridView>
                    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                        ConnectionString="<%$ ConnectionStrings:Last_TNTrucTuyenConnectionString %>" 
                        SelectCommand="SELECT * FROM [QUYTACDE]"></asp:SqlDataSource>
                </td>
            </tr>
        </table>
    
    </div>
    </form>
</body>
</html>
